package net.guerlab.sdk.anubis.request;

import java.util.HashMap;
import java.util.Map;

import net.guerlab.sdk.anubis.AnubisConstants;
import net.guerlab.sdk.anubis.response.CarrierQueryResponse;

/**
 * 骑手查询请求
 * 
 * @author guer
 *
 */
public class CarrierQueryRequest extends AbstractBusinessRequest<CarrierQueryResponse> {

    /**
     * 商户订单号
     */
    private String partnerOrderCode;

    @Override
    protected void createRequestUri(
            StringBuilder builder) {
        builder.append(AnubisConstants.URL_CARRIER_QUERY);
    }

    @Override
    protected Object getReuqestData() {
        Map<String, String> data = new HashMap<>(1);

        data.put("partner_order_code", partnerOrderCode);

        return data;
    }

    /**
     * 返回 商户订单号
     *
     * @return 商户订单号
     */
    public String getPartnerOrderCode() {
        return partnerOrderCode;
    }

    /**
     * 设置商户订单号
     *
     * @param partnerOrderCode
     *            商户订单号
     */
    public void setPartnerOrderCode(
            String partnerOrderCode) {
        this.partnerOrderCode = partnerOrderCode;
    }

}
